//
//  NetWorkingOrder.h
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/30.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NetWorkingOrder : NSObject

//商品订单确认
+(void)ordersConfirmWithParams:(NSDictionary *)params withSuccessBlock:(void(^)(id responseObj))successBlock;

//商品订单下单
+(void)placeOrdersWithParams:(NSDictionary *)params withSuccessBlock:(void(^)(id responseObj))successBlock;

//商品订单页列表
+(void)getProductOrdersListWithStatus:(NSInteger)status withPage:(NSInteger)page withSuccessBlock:(void(^)(id responseObj))successBlock;

//会员商品订单页列表   1  待评价    2  售后
+(void)getProductItemListWithStatus:(NSInteger)status withPage:(NSInteger)page withSuccessBlock:(void(^)(id responseObj))successBlock;

//会员商品订单页详情
+(void)getProductOrderItemDetail:(NSString *)itemId withSuccessBlock:(void(^)(id responseObj))successBlock;

//商品订单页详情
+(void)getProductOrderDetail:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//确认收货
+(void)OrderReceiveConfirmWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//取消订单
+(void)cancelOrderWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//确认删除
+(void)deleteOrderWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//支付状态  ProductorderState
+(void)getOrderStateWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//获取订单物流
+(void)getOrderTrackWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//去支付
+(void)orderPayWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;

//确认完成
+(void)confirmDoneOrder:(NSString *)itemId withSuccessBlock:(void(^)(id responseObj))successBlock;

//申请退货
+(void)applyOrderReject:(NSString *)itemId note:(NSString *)note withSuccessBlock:(void(^)(id responseObj))successBlock;

//申请退款
+(void)applyOrderRefund:(NSString *)itemId note:(NSString *)note withSuccessBlock:(void(^)(id responseObj))successBlock;

//确认评价
+(void)submitCommentWithItemId:(NSString *)itemId withParams:(NSDictionary *)params withSuccessBlock:(void(^)(id responseObj))successBlock;

//获取支付结果
+(void)getPayResultWithOrderNo:(NSString *)orderNo withSuccessBlock:(void(^)(id responseObj))successBlock;


@end

NS_ASSUME_NONNULL_END
